import Vue from 'vue'
import App from './router/App'
import router from './Router'
import ElementUI from 'element-ui'
import store from './Store'
import 'element-ui/lib/theme-chalk/index.css'
import Nanobar from 'nanobar'

Vue.use(ElementUI)

const options = {
  id: 'my-nanobar',
  target: document.getElementById('myDivId')
}

const nanobar = new Nanobar(options)

router.beforeEach((to, from, next) => {
  nanobar.go(100)
  next()
})

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
